home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
mint
/
utilit~1
/
akputil7.zoo
/
sleep.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-11-16
|
387 b
|
21 lines
#include <stdio.h>
#include <stdlib.h>
#include <mintbind.h>
main(argc,argv)
int argc;
char *argv[];
{
long timeout;
if (argc != 2 || (timeout = atol(argv[1])) == 0) {
puts("Usage: sleep N (sleep for N seconds)");
exit(1);
}
while (timeout > 32) {
(void)Fselect(32000,0,0,0);
timeout -= 32;
}
(void)Fselect(timeout*1000,0,0,0);
exit(0);
}